/*
 * asciiTableGen.c
 *
 * Created: 10/14/2013 3:43:58 AM
 *  Author: Tim
 */ 

#include "../src/Epiphany.h"

uint8_t i = 33; //global increment variable

void setup()
{
	//initialize the CPU to run at 32MHz
	clockInit();
	
	//setup the usb serial interface
	usbInit(9600);
	
	//real time clock delay initialization
	RTC_DelayInit();
	
	//global interrupt enable (the serial code is interrupt driven)
	sei();
}
	
void loop()
{
	if(delayOver)
	{
		fprintf(&USB_str," ascii = %c hex = 0x%X dec = %d\r\n",i,i,i);
		if(i >= 126) i = 33;
		else i++;
		RTC_Delay_ms(100);
	}
}